<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class Admin extends Validate
{
    protected $rule = [
        "admin_name" => "require",
        "role_id" => "require",
        "mobile" => "require",
        "password" => "require"
    ];

    protected $message = [
        'admin_name.require' => '请输入用户名',
        'role_id.require' => '请选择角色',
        'mobile.require' => '请输入手机号',
        'password.require' => '请输入登录密码'
    ];
}